package com.preknow.demo3;

public class Swallow extends Bired{
    public void fly(){
        System.out.println("fly...........");
    }

    public static void main(String[] args) {
        Swallow sw = new Swallow();
        sw.name="aa";
        sw.color="yellow";
        sw.eat();
        sw.fly();

        Swallow sw1 = new Swallow();
        sw1.name="bb";
        sw1.color="red";
        sw1.eat();
        sw1.fly();
    }
}
